import QtQuick 1.1

Item {
    id: root;

    property alias text: label.text;

    implicitHeight: label.paintedHeight + 2*platformStyle.paddingSmall;
    implicitWidth: Math.max(height, label.paintedWidth + 2*platformStyle.paddingMedium);

    BorderImage {
        id: frame
        anchors.fill: parent
        source: "../gfx/countbubble.png"
        border { left: 10; right: 10; top: 10; bottom: 10 }
    }

    Text {
        id: label;
        color: platformStyle.colorNormalLight
        font { family: platformStyle.fontFamilyRegular; pixelSize: platformStyle.fontSizeSmall; }
        anchors.centerIn: parent;
    }
}
